﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Planning.Forms;

namespace Planning
{
    public partial class formationBulle : UserControl
    {
        private string description;
        private int idFormation;
        private int idMembre;
        public formationBulle(int x, int y, string description, int idFormation, int idMembre)
        {
            InitializeComponent();

            this.Height = Properties.Settings.Default.hauteurBouton;
            this.Width = Properties.Settings.Default.largeurBouton;
            this.Left = y;
            this.Top = x;
            this.description = description;
            this.idFormation = idFormation;
            this.idMembre = idMembre;

            this.formationBouton.Text = description;
            this.formationBouton.Height = Properties.Settings.Default.hauteurBouton;
            this.formationBouton.Width = Properties.Settings.Default.largeurBouton;
            this.formationBouton.Refresh();
        }

        private void formationBulle_MouseEnter(object sender, EventArgs e)
        {
            MessageBox.Show(this.Height.ToString());
        }

        private void formationBouton_Click(object sender, EventArgs e)
        {
            infoFormation form = new infoFormation(this.idFormation, this.idMembre);
            form.ShowDialog();
        }

        
    }
}

